package student.aistar.mapper;


import org.apache.ibatis.annotations.Select;
import student.aistar.model.entity.Parameters;

import java.util.List;

public interface ProductParameterMapper {
    @Select("select * from parameters")
    List<Parameters> findAll();

    /*
     *功能描述:根据商品id查询商品参数
     * @date 2021/10/6
     * @param productId
     * @return student.aistar.model.entity.Parameters
     */
    @Select("select * from parameters where product_id = #{productId}")
    Parameters findParameterByProductId(Integer productId);
}
